<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/menustyle.css">
<!-- form -->
<script type="text/javascript" src="/Public/js/jquery.form.min.js"></script>
<style type="text/css">
dl{overflow: hidden;zoom: 1;margin-bottom: 20px;font-family: '微软雅黑';font-size: 14px;}
dt{float: left;width: 100px;font-size: 14px;padding: 3px 0 0 0;color: #333;text-align: right;}
dd input[type='text'],select{height: 28px;font-size: 12px;padding: 0 2px;margin: 0 10px 0 10px;box-sizing: border-box;}
dd textarea{padding: 0 2px;margin: 0 10px 0 10px;}
dd input[type='text']{width: 200px;}
dd span{height: 28px;padding: 0 2px;margin: 0 10px 0 10px;box-sizing: border-box;}
table tbody tr td{text-align: center;}
.none{ display: none; }
</style>
<div class="form">
	<div class="menustyle mt15 clearfx">
		<span class="tt01 fl">栏目样式：</span>
		<div class="fl">
			<label><input type="radio" name="type" value="1" <if condition="($columnRow['type'] eq 1) OR ($columnRow['type'] eq false)">checked="checked"</if> <if condition="$columnRow['type']"> disabled="disabled"</if>> <img src="__PUBLIC__/image/style1.jpg" class="imgstyle"></label>
			<label><input type="radio" name="type" value="2" <if condition="$columnRow['type'] eq 2">checked="checked"</if> <if condition="$columnRow['type']"> disabled="disabled"</if>> <img src="__PUBLIC__/image/style2.jpg" class="imgstyle"></label>
			<label><input type="radio" name="type" value="3" <if condition="$columnRow['type'] eq 3">checked="checked"</if> <if condition="$columnRow['type']">disabled="disabled"</if>> <img src="__PUBLIC__/image/style3.jpg" class="imgstyle"></label>
		</div>
	</div>

	<!--栏目一-->
	<div class="menuBox" id="type_1">
		<div class="box">
			<div class="container">
				<div class="title"><span class="icon-theme" style="background: url({$columnRow.imagesUrl}) no-repeat left center;">{$columnRow.name}</span></div>
				<div class="proimgbox clearfx">
			        <div class="l-bimg fl">
			            <img src="<?php if($columnRow['parent']['0']['imagesUrl']){echo $columnRow['parent']['0']['imagesUrl'];}else{echo '/Public/image/edit.JPG';} ?>" width="383" height="500" alt="{:$columnRow['parent']['0']['title']}" onclick="columnsMainLayer('1','{$columnRow['parent']['0']['id']}','{$columnRow['parent']['0']['title']}','{$columnRow['parent']['0']['imagesUrl']}','{$columnRow['parent']['0']['webUrl']}')">
			            <ul class="menulist">
			                <li>
			                    <div class="txtbox" onclick="columnsInfoLayer('1','{$columnRow['parent']['0']['child']['0']['id']}','{$columnRow['parent']['0']['id']}','{$columnRow['parent']['0']['child']['0']['imagesUrl']}','{$columnRow['parent']['0']['child']['0']['productID']}','{$columnRow['parent']['0']['child']['0']['productTitle']}','{$columnRow['parent']['0']['child']['0']['webUrl']}','{$columnRow['parent']['0']['child']['0']['edge']}','{$columnRow['parent']['0']['child']['0']['sign']}' )">
			                        <p><?php if($columnRow['parent']['0']['child']['0']['productTitle']){echo $columnRow['parent']['0']['child']['0']['productTitle'];}else{echo '标题 标题 标题 标题 ...';} ?></p>
			                        <p><small><?php if($columnRow['parent']['0']['child']['0']['edge']){echo $columnRow['parent']['0']['child']['0']['edge'];}else{echo '亮点 亮点 亮点 ...';} ?></small></p>
			                        <span class="price">¥<strong><?php if($columnRow['parent']['0']['child']['0']['price']){echo $columnRow['parent']['0']['child']['0']['price'];}else{echo '9,999';} ?>/人</strong>起</span>
			                    </div>
			                </li>
			                <li>
			                    <div class="txtbox" onclick="columnsInfoLayer('1','{$columnRow['parent']['0']['child']['1']['id']}','{$columnRow['parent']['0']['id']}','{$columnRow['parent']['0']['child']['1']['imagesUrl']}','{$columnRow['parent']['0']['child']['1']['productID']}','{$columnRow['parent']['0']['child']['1']['productTitle']}','{$columnRow['parent']['0']['child']['1']['webUrl']}','{$columnRow['parent']['0']['child']['1']['edge']}','{$columnRow['parent']['0']['child']['1']['sign']}' )">
			                        <p><?php if($columnRow['parent']['0']['child']['1']['productTitle']){echo $columnRow['parent']['0']['child']['1']['productTitle'];}else{echo '标题 标题 标题 标题 ...';} ?></p>
			                        <p><small><?php if($columnRow['parent']['0']['child']['1']['edge']){echo $columnRow['parent']['0']['child']['1']['edge'];}else{echo '亮点 亮点 亮点 ...';} ?></small></p>
			                        <span class="price">¥<strong><?php if($columnRow['parent']['0']['child']['1']['price']){echo $columnRow['parent']['0']['child']['1']['price'];}else{echo '9,999';} ?>/人</strong>起</span>
			                    </div>
			                </li>
			                <li>
			                    <div class="txtbox" onclick="columnsInfoLayer('1','{$columnRow['parent']['0']['child']['2']['id']}','{$columnRow['parent']['0']['id']}','{$columnRow['parent']['0']['child']['2']['imagesUrl']}','{$columnRow['parent']['0']['child']['2']['productID']}','{$columnRow['parent']['0']['child']['2']['productTitle']}','{$columnRow['parent']['0']['child']['2']['webUrl']}','{$columnRow['parent']['0']['child']['2']['edge']}','{$columnRow['parent']['0']['child']['2']['sign']}' )">
			                        <p><?php if($columnRow['parent']['0']['child']['2']['productTitle']){echo $columnRow['parent']['0']['child']['2']['productTitle'];}else{echo '标题 标题 标题 标题 ...';} ?></p>
			                        <p><small><?php if($columnRow['parent']['0']['child']['2']['edge']){echo $columnRow['parent']['0']['child']['2']['edge'];}else{echo '亮点 亮点 亮点 ...';} ?></small></p>
			                        <span class="price">¥<strong><?php if($columnRow['parent']['0']['child']['2']['price']){echo $columnRow['parent']['0']['child']['2']['price'];}else{echo '9,999';} ?>/人</strong>起</span>
			                    </div>
			                </li>
			            </ul>
			        </div>
			        <div class="r-bimg fl">
			            <img src="<?php if($columnRow['parent']['1']['imagesUrl']){echo $columnRow['parent']['1']['imagesUrl'];}else{echo '/Public/image/edit.JPG';} ?>" width="600" height="250" alt="{:$columnRow['parent']['1']['title']}" onclick="columnsMainLayer('2','{$columnRow['parent']['1']['id']}','{$columnRow['parent']['1']['title']}','{$columnRow['parent']['1']['imagesUrl']}','{$columnRow['parent']['1']['webUrl']}')">
			            <div class="txtbox" onclick="columnsInfoLayer('2','{$columnRow['parent']['1']['child']['0']['id']}','{$columnRow['parent']['1']['id']}','{$columnRow['parent']['1']['child']['0']['imagesUrl']}','{$columnRow['parent']['1']['child']['0']['productID']}','{$columnRow['parent']['1']['child']['0']['productTitle']}','{$columnRow['parent']['1']['child']['0']['webUrl']}','{$columnRow['parent']['1']['child']['0']['edge']}','{$columnRow['parent']['1']['child']['0']['sign']}' )">
			                <p><?php if($columnRow['parent']['1']['child']['0']['productTitle']){echo $columnRow['parent']['1']['child']['0']['productTitle'];}else{echo '标题 标题 标题 标题 ...';} ?></p>
			                <p><small><?php if($columnRow['parent']['1']['child']['0']['edge']){echo $columnRow['parent']['1']['child']['0']['edge'];}else{echo '亮点 亮点 亮点 ...';} ?></small></p>
			                <span class="price">¥<strong><?php if($columnRow['parent']['1']['child']['0']['price']){echo $columnRow['parent']['1']['child']['0']['price'];}else{echo '9,999';} ?>/人</strong>起</span>
			            </div>
			        </div>
			        <div class="r-simg fl">
			            <img src="<?php if($columnRow['parent']['2']['imagesUrl']){echo $columnRow['parent']['2']['imagesUrl'];}else{echo '/Public/image/edit.JPG';} ?>" width="291" height="233" alt="{:$columnRow['parent']['2']['title']}" onclick="columnsMainLayer('3','{$columnRow['parent']['2']['id']}','{$columnRow['parent']['2']['title']}','{$columnRow['parent']['2']['imagesUrl']}','{$columnRow['parent']['2']['webUrl']}')">
			            <div class="txtbox" onclick="columnsInfoLayer('3','{$columnRow['parent']['2']['child']['0']['id']}','{$columnRow['parent']['2']['id']}','{$columnRow['parent']['2']['child']['0']['imagesUrl']}','{$columnRow['parent']['2']['child']['0']['productID']}','{$columnRow['parent']['2']['child']['0']['productTitle']}','{$columnRow['parent']['2']['child']['0']['webUrl']}','{$columnRow['parent']['2']['child']['0']['edge']}','{$columnRow['parent']['2']['child']['0']['sign']}' )">
			                <p><?php if($columnRow['parent']['2']['child']['0']['productTitle']){echo $columnRow['parent']['2']['child']['0']['productTitle'];}else{echo '标题 标题 标题 标题 ...';} ?></p>
			                <p><small><?php if($columnRow['parent']['2']['child']['0']['edge']){echo $columnRow['parent']['2']['child']['0']['edge'];}else{echo '亮点 亮点 亮点 ...';} ?></small></p>
			                <span class="price">¥<strong><?php if($columnRow['parent']['2']['child']['0']['price']){echo $columnRow['parent']['2']['child']['0']['price'];}else{echo '9,999';} ?>/人</strong>起</span>
			            </div>
			        </div>
			        <div class="r-simg fl" >
			            <img src="<?php if($columnRow['parent']['3']['imagesUrl']){echo $columnRow['parent']['3']['imagesUrl'];}else{echo '/Public/image/edit.JPG';} ?>" width="291" height="233" alt="{:$columnRow['parent']['3']['title']}" onclick="columnsMainLayer('4','{$columnRow['parent']['3']['id']}','{$columnRow['parent']['3']['title']}','{$columnRow['parent']['3']['imagesUrl']}','{$columnRow['parent']['3']['webUrl']}')">
			            <div class="txtbox" onclick="columnsInfoLayer('4','{$columnRow['parent']['3']['child']['0']['id']}','{$columnRow['parent']['3']['id']}','{$columnRow['parent']['3']['child']['0']['imagesUrl']}','{$columnRow['parent']['3']['child']['0']['productID']}','{$columnRow['parent']['3']['child']['0']['productTitle']}','{$columnRow['parent']['3']['child']['0']['webUrl']}','{$columnRow['parent']['3']['child']['0']['edge']}','{$columnRow['parent']['3']['child']['0']['sign']}' )">
			                <p><?php if($columnRow['parent']['3']['child']['0']['productTitle']){echo $columnRow['parent']['3']['child']['0']['productTitle'];}else{echo '标题 标题 标题 标题 ...';} ?></p>
			                <p><small><?php if($columnRow['parent']['3']['child']['0']['edge']){echo $columnRow['parent']['3']['child']['0']['edge'];}else{echo '亮点 亮点 亮点 ...';} ?></small></p>
			                <span class="price">¥<strong><?php if($columnRow['parent']['3']['child']['0']['price']){echo $columnRow['parent']['3']['child']['0']['price'];}else{echo '9,999';} ?>/人</strong>起</span>
			            </div>
			        </div>
		    	</div>
			</div>
		</div>
	</div>
	<!--box2-->
	<div class="menuBox none" id="type_2">
	    <div class="box">
	    	<div class="container">
	    		<div class="title"><span class="icon-theme" style="background: url({$columnRow.imagesUrl}) no-repeat left center;">{$columnRow.name}</span></div>
		        <div class="prolist clearfx">
		            <ul>
		                <li>
		                    <div class="timg" onclick="columnsMainLayer('1','{$columnRow['parent']['0']['id']}','{$columnRow['parent']['0']['title']}','{$columnRow['parent']['0']['imagesUrl']}','{$columnRow['parent']['0']['webUrl']}')">
		                        <img src="<?php if($columnRow['parent']['0']['imagesUrl']){echo $columnRow['parent']['0']['imagesUrl'];}else{echo '/Public/image/edit.JPG';} ?>" width="315" height="230" alt="{:$columnRow['parent']['0']['title']}">
		                        <div class="tt-box"><span class="tt01">{:$columnRow['parent']['0']['title']}</span></div>
		                    </div>
		                    <div class="listbox" >
		                        <div class="txtlist clearfx" onclick="columnsInfoLayer('1','{$columnRow['parent']['0']['child']['0']['id']}','{$columnRow['parent']['0']['id']}','{$columnRow['parent']['0']['child']['0']['imagesUrl']}','{$columnRow['parent']['0']['child']['0']['productID']}','{$columnRow['parent']['0']['child']['0']['productTitle']}','{$columnRow['parent']['0']['child']['0']['webUrl']}','{$columnRow['parent']['0']['child']['0']['edge']}','{$columnRow['parent']['0']['child']['0']['sign']}' )">
		                            <span class="fl l-icon icon-ship" style="background: url(<?php if($columnRow['parent']['0']['child']['0']['imagesUrl']){echo $columnRow['parent']['0']['child']['0']['imagesUrl']; }else{echo '/Public/image/icon_ball.png';} ?>) no-repeat center;"  ></span>
		                            <div class="fr r-box">
		                                <p class="p-tt"><?php if($columnRow['parent']['0']['child']['0']['productTitle']){echo $columnRow['parent']['0']['child']['0']['productTitle'];}else{echo '标题 标题 标题 标题 ...';} ?></p>
		                                <p class="price"><strong>¥<?php if($columnRow['parent']['0']['child']['0']['price']){echo $columnRow['parent']['0']['child']['0']['price'];}else{echo '9999';} ?></strong>起</p>
		                            </div>
		                        </div>
		                        <div class="txtlist clearfx" onclick="columnsInfoLayer('2','{$columnRow['parent']['0']['child']['1']['id']}','{$columnRow['parent']['0']['id']}','{$columnRow['parent']['0']['child']['1']['imagesUrl']}','{$columnRow['parent']['0']['child']['1']['productID']}','{$columnRow['parent']['0']['child']['1']['productTitle']}','{$columnRow['parent']['0']['child']['1']['webUrl']}','{$columnRow['parent']['0']['child']['1']['edge']}','{$columnRow['parent']['0']['child']['1']['sign']}' )">
		                            <span class="fl l-icon icon-ball"  style="background: url(<?php if($columnRow['parent']['0']['child']['1']['imagesUrl']){echo $columnRow['parent']['0']['child']['1']['imagesUrl']; }else{echo '/Public/image/icon_ball.png';} ?>) no-repeat center;"  ></span>
		                            <div class="fr r-box">
		                                <p class="p-tt"><?php if($columnRow['parent']['0']['child']['1']['productTitle']){echo $columnRow['parent']['0']['child']['1']['productTitle'];}else{echo '标题 标题 标题 标题 ...';} ?></p>
		                                <p class="price"><strong>¥<?php if($columnRow['parent']['0']['child']['1']['price']){echo $columnRow['parent']['0']['child']['1']['price'];}else{echo '9999';} ?></strong>起</p>
		                            </div>
		                        </div>
		                        <div class="txtlist clearfx" onclick="columnsInfoLayer('3','{$columnRow['parent']['0']['child']['2']['id']}','{$columnRow['parent']['0']['id']}','{$columnRow['parent']['0']['child']['2']['imagesUrl']}','{$columnRow['parent']['0']['child']['2']['productID']}','{$columnRow['parent']['0']['child']['2']['productTitle']}','{$columnRow['parent']['0']['child']['2']['webUrl']}','{$columnRow['parent']['0']['child']['2']['edge']}','{$columnRow['parent']['0']['child']['2']['sign']}' )">
		                            <span class="fl l-icon icon-flight"  style="background: url(<?php if($columnRow['parent']['0']['child']['2']['imagesUrl']){echo $columnRow['parent']['0']['child']['2']['imagesUrl']; }else{echo '/Public/image/icon_ball.png';} ?>) no-repeat center;"  ></span>
		                            <div class="fr r-box">
		                                <p class="p-tt"><?php if($columnRow['parent']['0']['child']['2']['productTitle']){echo $columnRow['parent']['0']['child']['2']['productTitle'];}else{echo '标题 标题 标题 标题 ...';} ?></p>
		                                <p class="price"><strong>¥<?php if($columnRow['parent']['0']['child']['2']['price']){echo $columnRow['parent']['0']['child']['2']['price'];}else{echo '9999';} ?></strong>起</p>
		                            </div>
		                        </div>
		                    </div>
		                </li>
		                <li>
		                    <div class="timg" onclick="columnsMainLayer('2','{$columnRow['parent']['1']['id']}','{$columnRow['parent']['1']['title']}','{$columnRow['parent']['1']['imagesUrl']}','{$columnRow['parent']['1']['webUrl']}')">
		                        <img src="<?php if($columnRow['parent']['1']['imagesUrl']){echo $columnRow['parent']['1']['imagesUrl'];}else{echo '/Public/image/edit.JPG';} ?>" width="315" height="230" alt="">
		                        <div class="tt-box"><span class="tt01">{:$columnRow['parent']['1']['title']}</span></div>
		                    </div>
		                    <div class="listbox" >
		                        <div class="txtlist clearfx" onclick="columnsInfoLayer('1','{$columnRow['parent']['1']['child']['0']['id']}','{$columnRow['parent']['1']['id']}','{$columnRow['parent']['1']['child']['0']['imagesUrl']}','{$columnRow['parent']['1']['child']['0']['productID']}','{$columnRow['parent']['1']['child']['0']['productTitle']}','{$columnRow['parent']['1']['child']['0']['webUrl']}','{$columnRow['parent']['1']['child']['0']['edge']}','{$columnRow['parent']['1']['child']['0']['sign']}' )">
		                            <span class="fl l-icon icon-ship" style="background: url(<?php if($columnRow['parent']['1']['child']['0']['imagesUrl']){echo $columnRow['parent']['1']['child']['0']['imagesUrl']; }else{echo '/Public/image/icon_ball.png';} ?>) no-repeat center;"  ></span>
		                            <div class="fr r-box">
		                                <p class="p-tt"><?php if($columnRow['parent']['1']['child']['0']['productTitle']){echo $columnRow['parent']['1']['child']['0']['productTitle'];}else{echo '标题 标题 标题 标题 ...';} ?></p>
		                                <p class="price"><strong>¥<?php if($columnRow['parent']['1']['child']['0']['price']){echo $columnRow['parent']['1']['child']['0']['price'];}else{echo '9999';} ?></strong>起</p>
		                            </div>
		                        </div>
		                        <div class="txtlist clearfx" onclick="columnsInfoLayer('2','{$columnRow['parent']['1']['child']['1']['id']}','{$columnRow['parent']['1']['id']}','{$columnRow['parent']['1']['child']['1']['imagesUrl']}','{$columnRow['parent']['1']['child']['1']['productID']}','{$columnRow['parent']['1']['child']['1']['productTitle']}','{$columnRow['parent']['1']['child']['1']['webUrl']}','{$columnRow['parent']['1']['child']['1']['edge']}','{$columnRow['parent']['1']['child']['1']['sign']}' )">
		                            <span class="fl l-icon icon-ball" style="background: url(<?php if($columnRow['parent']['1']['child']['1']['imagesUrl']){echo $columnRow['parent']['1']['child']['1']['imagesUrl']; }else{echo '/Public/image/icon_ball.png';} ?>) no-repeat center;" ></span>
		                            <div class="fr r-box">
		                                <p class="p-tt"><?php if($columnRow['parent']['1']['child']['1']['productTitle']){echo $columnRow['parent']['1']['child']['1']['productTitle'];}else{echo '标题 标题 标题 标题 ...';} ?></p>
		                                <p class="price"><strong>¥<?php if($columnRow['parent']['1']['child']['1']['price']){echo $columnRow['parent']['1']['child']['1']['price'];}else{echo '9999';} ?></strong>起</p>
		                            </div>
		                        </div>
		                        <div class="txtlist clearfx" onclick="columnsInfoLayer('3','{$columnRow['parent']['1']['child']['2']['id']}','{$columnRow['parent']['1']['id']}','{$columnRow['parent']['1']['child']['2']['imagesUrl']}','{$columnRow['parent']['1']['child']['2']['productID']}','{$columnRow['parent']['1']['child']['2']['productTitle']}','{$columnRow['parent']['1']['child']['2']['webUrl']}','{$columnRow['parent']['1']['child']['2']['edge']}','{$columnRow['parent']['1']['child']['2']['sign']}' )">
		                            <span class="fl l-icon icon-flight" style="background: url(<?php if($columnRow['parent']['1']['child']['2']['imagesUrl']){echo $columnRow['parent']['1']['child']['2']['imagesUrl']; }else{echo '/Public/image/icon_ball.png';} ?>) no-repeat center;" ></span>
		                            <div class="fr r-box">
		                                <p class="p-tt"><?php if($columnRow['parent']['1']['child']['2']['productTitle']){echo $columnRow['parent']['1']['child']['2']['productTitle'];}else{echo '标题 标题 标题 标题 ...';} ?></p>
		                                <p class="price"><strong>¥<?php if($columnRow['parent']['1']['child']['2']['price']){echo $columnRow['parent']['1']['child']['2']['price'];}else{echo '9999';} ?></strong>起</p>
		                            </div>
		                        </div>
		                    </div>
		                </li>
		                <li>
		                    <div class="timg" onclick="columnsMainLayer('3','{$columnRow['parent']['2']['id']}','{$columnRow['parent']['2']['title']}','{$columnRow['parent']['2']['imagesUrl']}','{$columnRow['parent']['2']['webUrl']}')">
		                        <img src="<?php if($columnRow['parent']['2']['imagesUrl']){echo $columnRow['parent']['2']['imagesUrl'];}else{echo '/Public/image/edit.JPG';} ?>" width="315" height="230" alt="">
		                        <div class="tt-box"><span class="tt01">{:$columnRow['parent']['2']['title']}</span></div>
		                    </div>
		                    <div class="listbox" >
		                        <div class="txtlist clearfx" onclick="columnsInfoLayer('1','{$columnRow['parent']['2']['child']['0']['id']}','{$columnRow['parent']['2']['id']}','{$columnRow['parent']['2']['child']['0']['imagesUrl']}','{$columnRow['parent']['2']['child']['0']['productID']}','{$columnRow['parent']['2']['child']['0']['productTitle']}','{$columnRow['parent']['2']['child']['0']['webUrl']}','{$columnRow['parent']['2']['child']['0']['edge']}','{$columnRow['parent']['2']['child']['0']['sign']}' )">
		                            <span class="fl l-icon icon-ship" style="background: url(<?php if($columnRow['parent']['2']['child']['0']['imagesUrl']){echo $columnRow['parent']['2']['child']['0']['imagesUrl']; }else{echo '/Public/image/icon_ball.png';} ?>) no-repeat center;"  ></span>
		                            <div class="fr r-box">
		                                <p class="p-tt"><?php if($columnRow['parent']['2']['child']['0']['productTitle']){echo $columnRow['parent']['2']['child']['0']['productTitle'];}else{echo '标题 标题 标题 标题 ...';} ?></p>
		                                <p class="price"><strong>¥<?php if($columnRow['parent']['2']['child']['0']['price']){echo $columnRow['parent']['2']['child']['0']['price'];}else{echo '9999';} ?></strong>起</p>
		                            </div>
		                        </div>
		                        <div class="txtlist clearfx" onclick="columnsInfoLayer('2','{$columnRow['parent']['2']['child']['1']['id']}','{$columnRow['parent']['2']['id']}','{$columnRow['parent']['2']['child']['1']['imagesUrl']}','{$columnRow['parent']['2']['child']['1']['productID']}','{$columnRow['parent']['2']['child']['1']['productTitle']}','{$columnRow['parent']['2']['child']['1']['webUrl']}','{$columnRow['parent']['2']['child']['1']['edge']}','{$columnRow['parent']['2']['child']['1']['sign']}' )">
		                            <span class="fl l-icon icon-ball" style="background: url(<?php if($columnRow['parent']['2']['child']['1']['imagesUrl']){echo $columnRow['parent']['2']['child']['1']['imagesUrl']; }else{echo '/Public/image/icon_ball.png';} ?>) no-repeat center;"></span>
		                            <div class="fr r-box">
		                                <p class="p-tt"><?php if($columnRow['parent']['2']['child']['1']['productTitle']){echo $columnRow['parent']['2']['child']['1']['productTitle'];}else{echo '标题 标题 标题 标题 ...';} ?></p>
		                                <p class="price"><strong>¥<?php if($columnRow['parent']['2']['child']['1']['price']){echo $columnRow['parent']['2']['child']['1']['price'];}else{echo '9999';} ?></strong>起</p>
		                            </div>
		                        </div>
		                        <div class="txtlist clearfx" onclick="columnsInfoLayer('3','{$columnRow['parent']['2']['child']['2']['id']}','{$columnRow['parent']['2']['id']}','{$columnRow['parent']['2']['child']['2']['imagesUrl']}','{$columnRow['parent']['2']['child']['2']['productID']}','{$columnRow['parent']['2']['child']['2']['productTitle']}','{$columnRow['parent']['2']['child']['2']['webUrl']}','{$columnRow['parent']['2']['child']['2']['edge']}','{$columnRow['parent']['2']['child']['2']['sign']}' )">
		                            <span class="fl l-icon icon-flight" style="background: url(<?php if($columnRow['parent']['2']['child']['2']['imagesUrl']){echo $columnRow['parent']['2']['child']['2']['imagesUrl']; }else{echo '/Public/image/icon_ball.png';} ?>) no-repeat center;"></span>
		                            <div class="fr r-box">
		                                <p class="p-tt"><?php if($columnRow['parent']['2']['child']['2']['productTitle']){echo $columnRow['parent']['2']['child']['2']['productTitle'];}else{echo '标题 标题 标题 标题 ...';} ?></p>
		                                <p class="price"><strong>¥<?php if($columnRow['parent']['2']['child']['2']['price']){echo $columnRow['parent']['2']['child']['2']['price'];}else{echo '9999';} ?></strong>起</p>
		                            </div>
		                        </div>
		                    </div>
		                </li>
		            </ul>
		        </div>
	    	</div>
	    </div>
	</div>

    <!--box3-->
    <div class="menuBox none" id="type_3">
	    <div class="box box03">
	        <div class="container">
	            <div class="title2">
	            	<!-- <span>甄选当地游</span> -->
	            	<div class="title" style="border: 0px;">

	            	<span class="icon-theme" style="background: url({$columnRow.imagesUrl}) no-repeat left center; border: 0px;">{$columnRow.name}</span>
	            	</div>
	                <ul class="tabs">
	                	<foreach name="columnRow.parent" item="vo">
	                    <li class="<if condition="$key eq '0'">active</if>">{$vo.title}<a href="javascript:;" onclick="columnsMainLayer('{$vo.sort}','{$vo.id}','{$vo.title}','{$vo.imagesUrl}','{$vo.webUrl}')" style="font-size: small;">重命名</a><a href="javascript:;" onclick="updateSatus('menuParent','{$vo.id}','{$vo.title}')" style="font-size: small;">X</a></li>
	                    </foreach>
	                    <li><a href="javascript:;" onclick="columnsMainLayer()" style="font-size: small;">新增</a></li>
	                </ul>
	            </div>
	            <div class="dtprobox mt25">
				<foreach name="columnRow.parent" item="vo">
	                <div class="sublist clearfx">
	                    <ul>
	                    	<foreach name="vo.child" item="child">
	                        <li>
	                            <div class="img" onclick="columnsInfoLayer('{$child.sort}','{$child.id}','{$vo.id}','{$child.imagesUrl}','{$child.productID}','{$child.productTitle}','{$child.webUrl}','{$child.edge}','{$child.sign}')">
	                                <img src="<if condition="$child['imagesUrl']">{$child.imagesUrl}<else />/Public/image/edit.JPG</if>"  width="237" height="158" alt="{$child.productTitle}">
	                                <div class="txt-spanbox">
	                                    <span class="txt-span bg02">{$child.signName}</span>
										<if condition="$child['recommend'] eq 1">
	                                    <span class="txt-span">特惠推荐</span>
	                                    </if>
	                                    <span class="txt-span bg01">{$child.labelName}</span>
	                                </div>
	                            </div>
	                            <p class="p01"><a href="javascript:;" onclick="updateSatus('menuChild','{$child.id}','{$child.productTitle}')" style="font-size: small;">X</a>{$child.productTitle}</p>
	                            <p class="p02">{$child.edge}</p>
	                            <p class="price">¥{$child.price}</p>
	                        </li>
	                        
	                        </foreach>
	                        <li>
	                            <div class="img" onclick="columnsInfoLayer('','','{$vo.id}')">
	                                <img src="/Public/image/edit.JPG"  width="237" height="158" alt="/Public/image/edit.JPG">
	                                <div class="txt-spanbox">
	                                    <span class="txt-span bg02">产品标识</span>
	                                    <span class="txt-span">特惠推荐</span>
	                                    <span class="txt-span bg01">产品标签</span>
	                                </div>
	                            </div>
	                            <p class="p01">标题 标题 标题 标题 ...</p>
	                            <p class="p02">亮点 亮点 亮点 亮点</p>
	                            <p class="price">¥9,999</p>
	                        </li>
	                    </ul>
	                </div>
	            </foreach>
	            </div>

	        </div>
	    </div>
    </div>

</div>
<script>
var columnID = "{$id}";
 $(function(){
 	var type = $('input[name="type"]:checked').val();
 	$('.menuBox').hide('slow/400/fast');
 	$('#type_'+type).show('slow/400/fast');
 	/*tabs*/
    $(".dtprobox .sublist").hide().eq(0).show();
    $(".tabs li").hover(function(){
        $(this).addClass("active").siblings().removeClass("active");
        var index = $('.tabs li').index(this);
        $(".dtprobox .sublist").eq(index).show().siblings().hide();
    })
    $('input[name="type"]').click(function() {
    	/* Act on the event */
    	var obj = $(this).val();
    	$('.menuBox').hide('slow/400/fast');
    	$('#type_'+obj).show('slow/400/fast');
    })
 })

/**
 * [updateSatus description]
 * @param  {[type]} argument [description]
 * @return {[type]}          [description]
 */

function updateSatus(step,id,name) 
{
  layer.confirm('您确定要删除【__'+name+'__】吗？', {
    btn: ['确定','取消'] //按钮
  }, function(){
      $.ajax({
        url: '{:U(MODULE_NAME."/Webconf/pchomeUpdateStatus")}',
        type: 'post',
        dataType: 'json',
        data: {'step': step,'id': id,'status': '-1'},
        success:function (data) {

          if(data.valid == true)
          {
            layer.msg(data.state, {icon: 1});
            location.reload();
          }
          else
          {
            layer.msg(data.state, {icon: 2});
          }
        }
      })

  });
}

/**
 * [columnsMainLayer description]
 * @param  {[type]} sort      [description]
 * @param  {[type]} id        [description]
 * @param  {[type]} title     [description]
 * @param  {[type]} imagesUrl [description]
 * @param  {[type]} webUrl    [description]
 * @return {[type]}           [description]
 */
 function  columnsMainLayer(sort,id,title,imagesUrl,webUrl)
{
	if(!sort)
	{
		var length = $('.tabs').find('li').length;
		sort = length++;
	}

	if(!id)       		id        = '';
	if(!title)      	title     = '';
	if(!imagesUrl)      imagesUrl = '';
	if(!webUrl)         webUrl    = '';

  var html = '';
      html+='<div id="columnsMainHtml">';
      	html+='<dl style="margin-top: 20px;">';
          html+='<dt>名称：</dt>';
          html+='<dd><input type="text" name="title" class="inp_small" value="'+title+'" ></dd>';
        html+='</dl>';
        html+='<dl>';
          html+='<dt>橱窗图片：</dt>';
          html+='<dd>';
            html+='<div style="width: 160px; height: 105px; border: 1px #CCC solid; position: relative; overflow: hidden; text-align: center;vertical-align: middle;cursor: pointer; left: 10px;">';
              html+='<div  class="fileupload" style=" position: absolute;width: 160px;height: auto; right: 0;left: 0;bottom: 0;top: 0;margin: auto;" onclick="uploadImgHtml(this,\'Phome\',\'imagesUrl\')">';
                html+='<img src="'+imagesUrl+'" width="100%" height="100%">';
                html+='<input type="hidden" name="imagesUrl" value="'+imagesUrl+'">';
              html+='</div>';
           html+='</div>';
          html+='</dd>';
        html+='</dl>';
        html+='<dl>';
          html+='<dt>URL：</dt>';
          html+='<dd><input type="text" name="webUrl" class="inp_small" value="'+webUrl+'" ></dd>';
        html+='</dl>';
        html+='<input type="hidden" name="sort" value="'+sort+'" />';
      html+='</div>';

    //页面层-自定义
    var Div = layer.open({
        type: 1,
        title: '编辑橱窗',
        area: ['450px', '330px'],
        shift: 0, //从左动画弹出
        content: html,
        btn:['确定','取消'],
        yes: function(index){
          getcolumnMain(id);
        },
        cancel: function(){
          layer.close(Div);
        }
    });
}
/**
 * [getcolumnMain description]
 * @param  {[type]} mainID [description]
 * @return {[type]}        [description]
 */
function getcolumnMain(mainID)
{
	var obj = $('#columnsMainHtml');
	var	type      = $('input[name="type"]:checked').val();
	var	title     = obj.find('input[name="title"]').val();
	var	imagesUrl = obj.find('input[name="imagesUrl"]').val();
	var	webUrl    = obj.find('input[name="webUrl"]').val();
	var	sort      = obj.find('input[name="sort"]').val();

	var data = {'type': 'columnsMain','columnType': type,'id': mainID,'columnID': columnID,'title': title,'imagesUrl':imagesUrl, 'webUrl': webUrl,'sort':sort}
	getpchomePost(data);
}
/**
 * [columnsLayer description]
 * @param  {[type]} columnInfoID [description]
 * @param  {[type]} imagesUrl    [description]
 * @param  {[type]} productID    [description]
 * @param  {[type]} productTitle [description]
 * @param  {[type]} webUrl       [description]
 * @param  {[type]} edge         [description]
 * @param  {[type]} sign         [description]
 * @return {[type]}              [description]
 */
 function  columnsInfoLayer(sort,id,mainID,imagesUrl,productID,productTitle,webUrl,edge,sign )
{	
	if(!sort)
	{
		var sort = $('.dtprobox .sublist ul').find('li').length;
	}

	if(!imagesUrl)      imagesUrl    = '';
	if(!productID)      productID    = '';
	if(!productTitle)   productTitle = '';
	if(!webUrl)         webUrl       = '';
	if(!edge)           edge         = '';
	if(!sign)           sign         = 0;

  var html = '';
      html+='<div id="columnsInfoHtml">';
        html+='<dl style="margin-top: 20px;">';
          html+='<dt>橱窗图片：</dt>';
          html+='<dd>';
            html+='<div style="width: 160px; height: 105px; border: 1px #CCC solid; position: relative; overflow: hidden; text-align: center;vertical-align: middle;cursor: pointer; left: 10px;">';
              html+='<div  class="fileupload" style=" position: absolute;width: 160px;height: auto; right: 0;left: 0;bottom: 0;top: 0;margin: auto;" onclick="uploadImgHtml(this,\'Product\',\'imagesUrl\')">';
                html+='<img src="'+imagesUrl+'" width="100%" height="100%">';
                html+='<input type="hidden" name="imagesUrl" value="'+imagesUrl+'">';
              html+='</div>';
           html+='</div>';
          html+='</dd>';
        html+='</dl>';
        html+='<dl>';
          html+='<dt>产品ID：</dt>';
          html+='<dd>';
	          html+='<input type="text" name="productID" class="inp_small" value="'+productID+'" style="width: 60px;" onkeyup="getAjaxBind(this)">';
	          html+='<input type="text" name="productTitle" class="inp_small" value="'+productTitle+'" >';
          html+='</dd>';
        html+='</dl>';
        html+='<dl>';
          html+='<dt>URL：</dt>';
          html+='<dd><input type="text" name="webUrl" class="inp_small" value="'+webUrl+'" ></dd>';
        html+='</dl>';
        html+='<dl>';
          html+='<dt>亮点：</dt>';
          html+='<dd><input type="text" name="edge" class="inp_small" value="'+edge+'" ></dd>';
        html+='</dl>';
        html+='<dl>';
          html+='<dt>标识：</dt>';
          html+='<dd>';
           if(sign == 0)
          {
            html+='<input class="input-s" type="radio" name="sign" value="0" checked />无';
          }
          else
          {
            html+='<input class="input-s" type="radio" name="sign" value="0" />无';
          }

          if(sign == 1)
          {
            html+='<input class="input-s" type="radio" name="sign" value="1" checked />新品';
          }
          else
          {
            html+='<input class="input-s" type="radio" name="sign" value="1" />新品';
          }
          if(sign == 2)
          {
            html+='<input class="input-s" type="radio" name="sign" value="2" checked />爆款';
          }
          else
          {
            html+='<input class="input-s" type="radio" name="sign" value="2" />爆款';
          }
          if(sign == 3)
          {
            html+='<input class="input-s" type="radio" name="sign" value="3" checked />特价';
          }
          else
          {
            html+='<input class="input-s" type="radio" name="sign" value="3" />特价';
          }
          html+='</dd>';
        html+='</dl>';
      html+='</div>';

    //页面层-自定义
    var Div = layer.open({
        type: 1,
        title: '编辑橱窗',
        area: ['450px', '420px'],
        shift: 0, //从左动画弹出
        content: html,
        btn:['确定','取消'],
        yes: function(index){
          getcolumnInfo(sort,id,mainID);
        },
        cancel: function(){
          layer.close(Div);
        }
    });
}

/**
 * [getcolumnType description]
 * @return {[type]} [description]
 */
 function getcolumnInfo(sort,id,mainID)
 {
	var obj          = $('#columnsInfoHtml');
	var productID    = obj.find('input[name="productID"]').val();
	var productTitle = obj.find('input[name="productTitle"]').val();
	var imagesUrl    = obj.find('input[name="imagesUrl"]').val();
	var webUrl       = obj.find('input[name="webUrl"]').val();
	var edge         = obj.find('input[name="edge"]').val();
	var sign         = obj.find('input[name="sign"]:checked').val();

 	var data = {'type': 'columnsInfo','id': id,'mainID': mainID,'productID': productID, 'productTitle': productTitle,'imagesUrl': imagesUrl ,'webUrl':webUrl,'edge':edge,'sign':sign}
 	getpchomePost(data);
 }

/**
 * [getpchomePost description]
 * @param  {[type]} data [description]
 * @return {[type]}      [description]
 */
function getpchomePost(data)
{
  $.ajax({
    url: "{:U(MODULE_NAME.'/Webconf/pchomePost')}",
    type: 'POST',
    dataType: 'json',
    data: data,
    success:function (data) {
      if(data.valid == true)
      {
        layer.msg(data.state, {icon: 1});
        location.reload();
      }
      else
      {
        layer.msg(data.state, {icon: 2});
      }
    }
  })
}

/**
 * [getAjaxinfo description]
 * @param  {[type]} type [description]
 * @return {[type]}      [description]
 */
function getAjaxBind(obj,type)
{
  var id = $(obj).val();
  if(!type) type = 'product';
  $.ajax({
    url: '{:U(MODULE_NAME."/Webconf/getAjaxBind")}',
    type: 'POST',
    dataType: 'json',
    data: {'type': type , 'id': id},
    success:function (data) {

      if(data.valid == true)
      {

        $(obj).parent().find('input[name="productTitle"]').val(data.info.title);
        $(obj).parents('dl').next().find('input[name="webUrl"]').val('');
      }
    }
  })
}

/**
 * [uploadImgHtml description]
 * @return {[type]} [description]
 */
function uploadImgHtml(obj,type,thumbImages)
{
  var sizeType = 0;
  if(thumbImages == 'bigPic')sizeType = 1;
  var cityID   = 0;
  if($('select[name="cityID[]"]:first').length > 0 )
  {
    cityID = $('select[name="cityID[]"]:first').val();
  }

  //iframe层-父子操作
  var Div = layer.open({
              type: 2,
              area: ['800px', '400px'],
              content: ['/Home/Public/uploadImages.html?&type='+type+'&sizeType='+sizeType+'&cityID='+cityID,'no'],
              btn: ['确认','取消'], //按钮
              yes: function(index, layero){ //或者使用btn1
                  //按钮【按钮一】的回调

                  var objlayer = $(window.frames['layui-layer-iframe'+index].document);
                  var objlayercurrimg = objlayer.find("#selectImg ul li .curr");
                  if(objlayercurrimg.length <= 0)
                  {
                    var imgUrl = objlayer.find("#dndArea input[name='fileData[]']").val();
                  }
                  else
                  {
                    var imgUrl = objlayercurrimg.parent().find('img').attr('src')
                  }

                  $(obj).empty();
                  $(obj).append('<img src="'+imgUrl+'" width="100%" height="100%"><input type="hidden" name="'+thumbImages+'" class="headerImg" value="'+imgUrl+'">');
                  layer.close(Div);
              },
              cancel: function(index){ //或者使用btn2
                  //按钮【按钮二】的回调
                  layer.close(Div);
              }
          });
}
</script>